﻿

using System;
using System.Collections.Generic;

namespace Demo.Domain
{
    public interface IActionRepository
    {

        void CreateAction(string name, Int32 moduleId, Int32 sort = 0);


        Action GetActionWithName(string name);



        Action GetActionWithId(Int32 id);


        IList<Action> GetActionWithUserId(Int32 userid);


        IList<Action> GetAction();

        
        bool ChangeActionWithName(string oldName, string newName);

        
        //bool ChangeActionWithName(string Name, Int32 newModuleId);
    }
}
